export const columns = [
  {
    title: '序号',
    dataIndex: 'index',
    key: 'index'
  },
  {
    title: '分类名',
    dataIndex: 'name',
    key: 'name'
  },
  {
    title: '图片',
    dataIndex: 'imgUrl',
    key: 'imgUrl'
  },
  {
    title: '父分类',
    dataIndex: 'parentName',
    key: 'parentName'
  },
  {
    title: '创建时间',
    dataIndex: 'createTime',
    key: 'createTime',
    sorter: (a, b) => new Date(a.createTime).getTime() - new Date(b.createTime).getTime(),
  },
  {
    title: '操作',
    dataIndex: 'action',
    key: 'action'
  }
]
